<!DOCTYPE html>
<html lang="zh-cn">
	<head>
	  	<title>睡眠日志</title>
	  	<meta charset="UTF-8"> 
	  	<link rel="stylesheet" type="text/css" href="../css/sidebar.css" />
		<link rel="stylesheet" type="text/css" href="../css/pure-min.css" />
		<script src="../js/echarts.simple.min.js"></script>
	</head>
	<body>
	<!--content begin-->
		<div class="header" align="center">
			<h2>首页</h2>
			<hr>
		</div>
		<div class="pure-g">
			<div id="main" style="width: 1600px;height:600px;"></div>
			<script>
				var myChart = echarts.init(document.getElementById('main'));
				
				option = {
					title: {
						text: '睡眠时间'
					},
					tooltip : {
						trigger: 'axis'
					},
					legend: {
						data:['睡','醒']
					},
					toolbox: {
						feature: {
							saveAsImage: {}
						}
					},
					grid: {
						left: '3%',
						right: '4%',
						bottom: '3%',
						containLabel: true
					},
					xAxis : [
						{
							type : 'category',
							boundaryGap : false,
							data : ["20150408","20150409","20150410","20150411","20150412","20150413","20150414","20150415","20150416","20150417","20150418","20150419","20150420","20150421","20150422","20150423","20150424","20150425","20150426","20150427","20150428","20150429","20150430","20150501","20150502","20150503","20150504","20150505","20150506","20150507","20150508","20150509","20150510","20150511","20150512","20150513","20150514","20150515","20150516","20150517","20150518","20150519","20150520","20150521","20150522","20150523","20150524","20150525","20150526","20150527","20150528","20150529","20150530","20150531","20150601","20150602","20150603","20150604","20150605","20150606","20150607","20150608","20150609","20150610","20150611","20150612","20150613","20150614","20150615","20150616","20150617","20150618","20150619","20150620","20150621","20150622","20150623","20150624","20150625","20150626","20150627","20150628","20150629","20150630","20150701","20150702","20150703","20150704","20150705","20150706","20150707","20150708","20150709","20150710","20150711","20150712","20150713","20150714","20150715","20150716","20150717","20150718","20150719","20150720","20150721","20150722","20150723","20150724","20150725","20150726","20150727","20150728","20150729","20150730","20150731","20150801","20150802","20150803","20150804","20150805","20150806","20150807","20150808","20150809","20150810","20150811","20150812","20150813","20150814","20150815","20150816","20150817","20150818","20150819","20150820","20150821","20150822","20150823","20150824","20150825","20150826","20150827","20150828","20150829","20150830","20150831","20150901","20150902","20150903","20150904","20150905","20150906","20150907","20150908","20150909","20150910","20150911","20150912","20150913","20150914","20150915","20150916","20150917","20150918","20150919","20150920","20150921","20150922","20150923","20150924","20150925","20150926","20150927","20150928","20150929","20150930","20151001","20151002","20151003","20151004","20151005","20151006","20151007","20151008","20151009","20151010","20151011","20151012","20151013","20151014","20151015","20151016","20151017","20151018","20151019","20151020","20151021","20151022","20151023","20151024","20151025","20151026","20151027","20151028","20151029","20151030","20151031","20151101","20151102","20151103","20151104","20151105","20151106","20151107","20151108","20151109","20151110","20151111","20151112","20151113","20151114","20151115","20151116","20151117","20151118","20151119","20151120","20151121","20151122","20151123","20151124","20151125","20151126","20151127","20151128","20151129","20151130","20151201","20151202","20151203","20151204","20151205","20151206","20151207","20151208","20151209","20151210","20151211","20151212","20151213","20151214","20151215","20151216","20151217","20151218","20151219","20151220","20151221","20151222","20151223","20151224","20151225","20151226","20151227","20151228","20151229","20151230","20151231","20160101","20160102","20160103","20160104","20160105","20160106","20160107","20160108","20160109","20160110","20160111","20160112","20160113","20160114","20160115","20160116","20160117","20160118","20160119","20160120","20160121","20160122","20160123","20160124","20160125","20160126","20160127","20160128","20160129","20160130","20160131","20160201","20160202","20160203","20160204","20160205","20160206","20160207","20160208","20160209","20160210","20160211","20160212","20160213","20160214","20160215","20160216","20160217","20160218","20160219","20160220","20160221","20160222","20160223","20160224","20160225","20160226","20160227","20160228","20160229","20160301","20160302","20160303","20160304","20160305","20160306","20160307","20160308","20160309","20160310","20160311","20160312","20160313","20160314","20160315","20160316","20160317","20160318","20160319","20160320","20160321","20160322","20160323","20160324","20160403","20160404","20160405","20160407","20160408","20160409","20160410","20160411","20160412","20160413","20160414","20160415","20160416","20160417","20160418","20160419","20160420","20160421","20160422","20160423","20160424","20160425","20160426","20160427","20160428","20160429","20160430","20160501","20160502","20160503","20160504","20160505","20160506","20160507","20160508","20160509","20160510","20160511","20160512","20160513","20160514","20160515","20160516","20160517","20160518","20160519","20160520","20160521","20160522","20160523","20160524","20160525","20160526","20160527","20160528","20160529","20160530","20160531","20160601","20160602","20160603","20160604","20160605","20160606","20160607","20160608","20160609","20160610","20160611","20160612","20160613","20160614","20160615","20160616","20160617","20160618","20160619","20160620","20160621","20160622","20160623","20160624","20160625","20160626","20160627","20160628","20160629","20160630","20160701","20160702","20160703","20160704","20160705","20160706","20160707","20160708","20160709","20160710","20160711","20160712","20160713","20160714","20160715","20160716","20160717","20160718","20160719","20160720","20160721","20160722","20160723","20160724","20160725","20160726","20160727","20160728","20160729","20160730","20160731","20160801","20160802","20160803","20160804","20160805","20160806","20160807","20160808","20160809","20160810","20160811","20160812","20160813","20160814","20160815","20160816","20160817","20160818","20160819"]
						}
					],
					yAxis : [
						{
							type : 'value'
						}
					],
					series : [
						{
							name:'入睡时间',
							type:'line',
							stack: '总量',
							areaStyle: {normal: {}},
							data:[-35,28,-27,47,-53,193,-64,-71,14,-49,111,-40,-67,-23,-126,-102,17,98,-39,-120,-43,-30,47,-121,-51,-218,-34,-95,-122,-22,131,-49,-90,-115,-53,-83,97,53,-7,-20,-121,-30,-37,-90,39,-28,-55,48,-115,-82,-232,-70,-121,-94,-98,-105,-80,-53,13,-120,5,-98,-127,-82,-75,-39,-40,-28,6,-98,-76,-61,-21,-21,-12,23,-25,-33,-54,-30,41,-6,116,39,69,48,-30,0,61,-56,-46,5,-60,-62,-62,-90,0,10,-34,-36,11,50,70,66,-42,130,-53,34,192,245,90,-9,-50,-30,-30,-41,-14,-103,-78,-77,28,-27,-36,-17,20,51,-171,-69,-90,-91,-30,-116,-52,-75,-33,-97,-2,-56,79,-60,-68,-151,-91,-151,-100,20,-44,-166,-140,-43,41,-12,-43,58,-2,-67,-12,-131,24,73,34,-34,-20,-31,15,-37,-52,-11,-68,-27,78,-85,-101,45,91,14,-1,-105,78,-130,18,36,136,110,66,-45,30,-85,8,-60,-54,-70,90,35,-30,102,34,-40,140,20,-190,-10,75,0,-50,-48,-72,-115,-120,0,-57,14,35,-72,47,-66,86,-86,17,45,60,37,77,5,33,32,53,53,347,110,83,23,-38,15,15,-3,55,53,98,43,10,-22,-29,55,58,-70,35,-30,3,69,69,66,-17,31,-97,-54,-37,38,-62,132,40,56,-4,-36,29,93,41,59,16,4,67,22,36,106,88,54,34,13,30,45,75,75,28,50,106,182,112,101,147,122,183,55,148,102,102,-236,-236,320,242,357,314,193,193,320,206,335,354,176,202,192,309,294,306,295,315,173,315,324,297,221,302,239,197,332,90,225,285,223,204,334,255,228,264,140,371,312,313,318,264,290,62,233,113,224,270,378,248,361,369,293,262,-72,266,62,179,76,420,180,180,256,166,172,159,160,210,115,166,225,108,140,140,198,174,167,116,128,169,101,-42,30,30,210,284,116,284,70,230,185,225,193,120,142,338,54,287,287,192,128,235,295,-250,150,155,70,112,168,168,45,180,180,113,53,158,158,123,262,180,185,113,113,136,230,133,64,286,318,78,141,73,73,81,65,33,-55,-55,154,-26,214,-56,30,97,146,125,185,175,85,85,42,131,265,227,175,158,128,108,128,115,267,152,134,216,142,142,280,175,180,335,163,163,270,342,142,210,220,174,132,266,327,240,202,136,170,307,110,70,223,180,210,-60,-36]
						},
						{
							name:'起床时间',
							type:'line',
							stack: '总量',
							label: {
								normal: {
									show: true,
									position: 'top'
								}
							},
							areaStyle: {normal: {}},
							data:[374,352,360,500,343,413,428,387,400,393,453,324,352,417,276,418,349,436,312,260,313,330,383,423,491,424,381,364,340,480,361,520,370,360,336,346,390,320,433,360,399,392,365,375,396,259,431,513,421,350,259,353,271,383,360,395,351,311,375,417,366,413,344,375,328,402,375,372,464,408,275,415,338,409,436,441,359,451,462,466,389,451,415,456,372,400,380,399,462,447,385,435,358,338,390,356,435,418,350,394,354,476,488,391,372,476,420,523,509,575,432,410,439,369,375,350,339,389,373,404,431,241,485,405,454,307,384,354,350,377,380,374,374,353,375,427,381,356,422,332,387,217,339,363,479,353,359,301,399,316,427,269,523,427,342,372,369,375,477,486,418,380,430,442,393,451,434,373,398,423,408,384,387,498,404,455,421,424,459,508,533,486,545,515,548,429,499,450,527,508,513,451,555,561,423,513,497,630,620,645,620,665,615,555,461,445,599,615,486,503,500,570,433,613,586,472,565,460,558,565,549,440,535,460,503,570,608,690,506,615,510,403,456,606,494,415,440,500,461,633,551,599,373,491,525,455,540,603,473,570,570,470,599,365,445,440,485,538,525,627,525,599,556,407,450,476,465,430,497,559,471,490,575,465,535,545,530,445,503,565,485,485,530,565,555,555,620,563,594,505,590,497,458,516,516,594,594,660,735,740,850,560,560,540,755,1025,821,806,493,820,800,810,700,592,845,577,825,655,744,417,758,650,665,782,478,508,450,495,575,555,660,630,485,595,777,868,740,626,490,460,670,615,651,764,796,899,605,788,825,870,400,400,585,550,540,555,960,640,680,640,550,700,640,500,595,530,565,620,635,535,635,665,620,525,545,570,606,550,390,487,555,615,500,550,625,605,605,530,645,390,540,600,700,600,610,580,560,570,630,610,310,570,480,420,540,540,570,560,540,630,550,500,550,560,600,600,525,501,520,580,500,555,440,560,560,520,325,340,340,570,510,350,375,395,370,440,380,460,365,405,405,420,490,500,515,480,420,420,635,615,505,565,455,635,685,540,630,750,705,460,630,285,285,725,685,655,704,615,640,790,790,282,287,287,287,720,710,820,770,290,287,290,672,286,620,920,605,420,300,660]
						}
					]
				};
				myChart.setOption(option);
			</script>
		</div>
	<!--content end-->
		<div class="nav">
			<div class="home">
			  <span>RAW</span>
			</div>
			<div class="sidebar">
				<ul>
					<li onclick="window.location.href='/'">Home</li>
					<li class="devider"></li>
					<li onclick="window.location.href='/food'">食物日志</li>
					<li class="devider"></li>
					<li onclick="window.location.href='/health'">健康日志</li>
					<li class="devider"></li>
					<li onclick="window.location.href='/sleep'">睡眠日志</li>
				</ul>
			</div>
		</div>
	</body>
</html>